package contacts;

/**
 * Klasse repräsentiert die Adressbücher einer Checkbox
 * 
 * @author Michi
 * 
 */
public class CheckboxBook {

	int idBooks;
	String name;
	int idCreator;

	/**
	 * Konstruktor
	 * 
	 * @param id
	 *            ID des Adressbuches in der Datenbank
	 * @param name
	 *            Name des Adressbuches
	 * @param creator
	 *            Besitzer des Adressbuches
	 */

	public CheckboxBook(int id, String name, int creator) {
		this.idBooks = id;
		this.name = name;
		this.idCreator = creator;

	}

	// Getter & Setter

	public int getIdBooks() {
		return idBooks;
	}

	public void setIdBooks(int idBooks) {
		this.idBooks = idBooks;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getIdCreator() {
		return idCreator;
	}

	public void setIdCreator(int idCreator) {
		this.idCreator = idCreator;
	}

	public String toString() {
		return name;
	}

}
